import re


class Tool:
    removeImg = re.compile('<img.*?>| {7}|')
    removeAddr = re.compile('<a.*?>|</a>')

    def replace(self, x):
        x = re.sub(self.removeImg, "", x)
        # x = re.sub(self.removeAddr, "", x)
        return x.strip()